﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommunicationClass.Model
{
    /// <summary>
    /// 消息事件类型
    /// </summary>
    public enum MsgTypeEventEnum
    {
        无操作 = 0,
        打开窗体 = 1,
        打开网站 =2
    }
    /// <summary>
    /// 消息类型
    /// </summary>
    public class MessageTypeModel
    {
        /// <summary>
        /// 消息类型代码
        /// </summary>
        public string MsgTypeCode { get; set; }
        /// <summary>
        /// 消息类型名称
        /// </summary>
        public string MsgTypeName { get; set; }
        /// <summary>
        /// 事件类型
        /// </summary>
        public MsgTypeEventEnum MsgTypeEvent { get; set; }

        private bool _MsgIsReply = false;
        /// <summary>
        /// 是否可回复消息,默认不可回复用于@某条消息
        /// </summary>
        public bool MsgIsReply { get { return _MsgIsReply; } set { _MsgIsReply = value; } }

        private int _MsgRetainDays = 7;
        /// <summary>
        /// 消息保留天数,默认7天
        /// </summary>
        public int MsgRetainDays { get { return _MsgRetainDays; } set { _MsgRetainDays = value; } }
    }
}
